﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web.Mvc;
using System.Linq;
using Bootstrap.Builders;
using DotLess.Services;
using dotless;
using Bootstrap.Services;
using dotless.Core;
using dotless.Core.Importers;
using dotless.Core.Input;
using dotless.Core.Loggers;
using dotless.Core.Stylizers;
using dotless.Core.configuration;
using Parser = dotless.Core.Parser.Parser;

namespace Bootstrap.Controllers {
    public class BootstrapController : Controller {
        private readonly IBootstrapBuildService _builder;

        public BootstrapController(IBootstrapBuildService builder) {
            _builder = builder;
        }

        public ActionResult Build() {
            var result = _builder.Build();
            
            return Content(result, "text/css", Encoding.UTF8);
        }

    }
}